# 安装软件
$Env:http_proxy="http://127.0.0.1:7890";$Env:https_proxy="http://127.0.0.1:7890"
winget install JanDeDobbeleer.OhMyPosh -s winget
winget install Microsoft.PowerShell -s winget

# 创建 powrshell $PROFILE
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
notepad $PROFILE

# 添加 starship 环境变量
[Environment]::SetEnvironmentVariable("STARSHIP_LOG","error","User")

# 添加自动补全
Install-Module PSCompletions
psc add git

cp ./.gitconfig ~/.gitconfig
cp .\Microsoft.PowerShell_profile.ps1 $PROFILE
cp .\.config\starship.toml ~/.config/
